;
; GDUSB2Ser.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Ports						
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}		
Provider=%ManufacturerName%
CatalogFile=gdcatalogfile.cat
DriverVer=09/10/2014,10.21.28.534

[DestinationDirs]
Drivers_Dir = 12 

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NTx86,NTamd64

[Standard.NTx86]
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_018A
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028B&MI_01
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028C&MI_01
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028D&MI_01

[Standard.NTamd64]
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_018A
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028B&MI_01
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028C&MI_01
%GD32VCP.DeviceDesc%=GD32VCP_Device, USB\VID_28E9&PID_028D&MI_01

[GD32VCP_Device.NT]
Include=mdmcpq.inf							
CopyFiles=FakeModemCopyFileSection
AddReg=GD32VCP_AddReg

[GD32VCP_AddReg]
; By default, USBDevice class uses iProduct descriptor to name the device in
; Device Manager on Windows 8 and higher.
; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
;HKR,,FriendlyName,,%GD32VCP.DeviceDesc%
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

;-------------- Service installation
[GD32VCP_Device.NT.Services]
AddService = GD32VCP,%SPSVCINST_ASSOCSERVICE%, GD32VCP_Service_Inst

; -------------- GD32VCP driver install sections
[GD32VCP_Service_Inst]
DisplayName    = %GD32VCP.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\usbser.sys
LoadOrderGroup = Extended Base ;

;
;---------------- Strings Defines --------------------
;

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="GigaDevice"
DiskName = "GD Virtual Com Port Driver Installation Disk"
GD32VCP.DeviceDesc = "GD32 Virtual Com Port"
GD32VCP.SVCDESC = "USB Driver for GD device v1.0"
